<template>
  <div>
    <button @click="submit">登录</button>
  </div>
</template>
<script>
import { sysLogin } from '@/api/test'
export default {
  beforeRouteEnter(to, from, next) {
    next()
  },
  data() {
    return {

    }
  },
  computed: {

  },
  created() {
    alert(process.env.VUE_APP_XXX)
  },
  methods: {

    async submit() {
      const res = await sysLogin()
      // 1
      console.log('调用测试接口', res)
    }
  }
}
</script>
<style>
</style>
